package com.spzx.product.api.domain;

import com.spzx.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
@Schema(description = "品牌实体类")
public class Brand extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @NotEmpty(message = "品牌名称不能为空")
    @Size(min = 2, max = 10 ,message = "品牌名称长度为2-10")
    @Schema(description = "品牌名称")
    private String name;

    @Schema(description = "品牌图标")
    private String logo;


}
